package com.wsseieiei.fireballgame.init;

import com.wsseieiei.fireballgame.Main;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.item.alchemy.Potion;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class PotionInit {

    public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, Main.MOD_ID);

    //第一个参数是药水的名字 后面跟上我们状态效果
    public static final RegistryObject<Potion> BURN_POTION = POTIONS.register("burn_potion",
            () -> new Potion(new MobEffectInstance(EffectInit.BURN.get(), 600, 0)));

    public static void register(IEventBus eventBus) {
        POTIONS.register(eventBus);
    }
}
